#ifndef MYTEST_H
#define MYTEST_H

#include "duktape/duktapemanager.h"

struct MyStructTest
{
    DUKGLUE_OBJECT(MyStructTest)

    MyStructTest()
        : value(0) {}
    MyStructTest(int v,std::string n)
        : value(v),name(n) {}

    int getValue() const { return value; }
    void setValue(int v) { value = v; }

    const std::string& getName() const { return name; }
    void setName(const std::string& n) { name = n; }

    int value;
    std::string name;
};

class MyTest
{
    DUKGLUE_OBJECT(MyTest)

public:
    MyTest(std::string name);
    ~MyTest();

    std::string getName(void);
    void print2(std::string text);

    virtual void print(void);

protected:
    std::string mname;
};

#endif // MYTEST_H
